package com.cx.support;

import com.cx.utils.CacheConsts;
import io.lettuce.core.AbstractRedisClient;
import io.lettuce.core.api.StatefulConnection;
import io.lettuce.core.support.AsyncPool;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.pool2.impl.GenericObjectPool;

/**
 * Created on 2017/4/28.
 *
 * @author Alan
 */
@Setter
@Getter
public class RedisLettuceCacheConfig<K, V> {

    private LettuceConnectionManager manager;

    private AbstractRedisClient redisClient;

    private StatefulConnection connection;

    private AsyncPool asyncPool;

    private GenericObjectPool pool;

    private long asyncResultTimeoutInMillis = CacheConsts.ASYNC_RESULT_TIMEOUT.toMillis();
}